package com.householditemtwo.common.utils;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;

/**
 * 	jdbc工具类查询方法返回的包装类
 * @author Administrator
 *
 */
public class QueryDataResult {
	public Connection conn; //数据库连接对象
	public Statement st; //数据库执行sql的对象
	public ResultSet rs; //保存结果的对象
	public QueryDataResult(Connection conn, Statement st, ResultSet rs) {
		super();
		this.conn = conn;
		this.st = st;
		this.rs = rs;
	}
	
	public void close() {
		//调用工具类的关闭方法
		DBManager.closeAll(conn, st, rs);
	}
	
}
